<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            display: flex;
            flex-flow: row nowrap;
        }
        .div{
            width: 300px;
            height: 200px;
            background-color: yellow;
            border: 1px solid black;
        }
        .div9{
            /* order可以是负数 默认值是0 */
            order: -1;
            /* flex-shrink 默认数值是1  当空间缩小的时候 0的项目不缩小 */
            flex-shrink: 0;
        }
        .div10{
            /* flex-grow 默认值是1 有剩余空间的时候 放大 */
            flex-grow: 2;
        }
        .div2{
            /* 设置主轴上的空间大小 默认值是auto  即为项目本身的大小 */
            flex-basis: 30px;
        }
        .div3{
            /* 允许子项目自己在交叉轴上面的对齐方式 */
            align-self: flex-end;
        }
    
    </style>
</head>
<body>
    <div class="container">
        <div class="div1 div">1</div>
        <div class="div2 div">2</div>
        <div class="div3 div">3</div>
        <div class="div4 div">4</div>
        <div class="div5 div">5</div>
        <div class="div6 div">6</div>
        <div class="div7 div">7</div>
        <div class="div8 div">8</div>
        <div class="div9 div">9</div>
        <div class="div10 div">10</div>
</div>
</body>
</html>